package com.yang.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangbo
 * @date 2019-09-11 9:55
 */
@RestController
public class DemoController {

    @Value("${foo.bar.name}")
    private String configValue;

    @GetMapping(value = "/value")
    public String configValue() {
        return configValue;
    }

    @GetMapping(value = "/actuator/health")
    public String health() {
        return "SUCCESS";
    }
}
